package com.leigang.boot.redis.springbootredis.utils;

import cn.hutool.core.lang.generator.SnowflakeGenerator;

public class SnowUtils {
    private static final SnowflakeGenerator generator = new SnowflakeGenerator(0, 0);

    /**
     *  获取雪花算法ID
     * @return id
     */
    public static String getId() {
        return String.valueOf(generator.next());
    }
}
